<?php
namespace app\api\validate;


class IDMustBePositiveInt extends BaseValidate{
    protected $rule = [
        'id' => 'require|isPositiveInterger'
    ];

    protected $message = [
        'id.require' => 'id为必填项',
        'id.isPositiveInterger' => 'id必须为正整数'
    ];
}

?>